﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QiHe
{
    public partial class PM_Task_Creat : Form
    {
        DataSet PM_DeptList;
        DataSet Task_List;
        DataSet EQ_List;
        public PM_Task_Creat()
        {
            InitializeComponent();
        }

        private void PM_Unfinish_List_Load(object sender, EventArgs e)
        {
          



            MedEQ.Service1 sop2 = new MedEQ.Service1();
            PM_DeptList = sop2.HSP_Department_PM_List_Win(DataTemp.HSPID, DateTime.Today.Month.ToString());


            skinDataGridView2.DataSource = PM_DeptList.Tables[0];
        }

        private void skinDataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
          
        }

        private void skinDataGridView2_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            MedEQ.Service1 sop = new MedEQ.Service1();
            EQ_List = sop.EQ_List_By_FirstDept(PM_DeptList.Tables[0].Rows[skinDataGridView2.CurrentRow.Index][1].ToString());

            skinDataGridView1.DataSource = EQ_List.Tables[0];
        }

       

        private void button1_Click(object sender, EventArgs e)
        {
            Add_PM_Task at = new Add_PM_Task();
            at.EQ_List = EQ_List;
            at.Show();
        }
    }
}
